package com.coocaa.app.lib.cleaner.scanner;

import com.coocaa.app.lib.cleaner.scanner.impl.ScanRunnerImpl;

/**
 * Created by lu on 17-4-12.
 */

public class ScanRunnerFactory {//} extends AbstractFactory<ScanRunnerImpl> {
    public static final ScanRunnerFactory factory = new ScanRunnerFactory();


    private ScanRunnerImpl instance = null;

    public ScanRunnerImpl create() {
        return new ScanRunnerImpl();
    }

    public synchronized ScanRunnerImpl instance() {
        if (instance == null)
            instance = create();
        return instance;
    }
}